<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      /* 
      1. i=3; while (i=3); console.log(3); i=2
      2. i=2; while (i=2); console.log(2); i=1
      3. i=1; while (i=1); console.log(1); i=0
      4. i=0; while (i=0); false
      */
      let i = 3;
      while (i) {
        console.log(i--);
      }
    </script>
  </body>
</html>
